"""
 生成一副扑克牌，进行洗牌和发牌工作
"""
import random

flower = ['♥','♠','♣','♦']
nums = ['2','3','4','5','6','7','8','9','10','J','Q','K','A']

# 1. 生成扑克牌
poker = [ f + num for f in flower for num in nums] + ['大王','小王']
print(poker)

# 2. 使用set 进行洗牌(利用的set的无序性)
shuffle_poker = list(set(poker))

print(shuffle_poker)